package cn.hwadee.muying.mapper;

import cn.hwadee.muying.entity.Role;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tony
 * @since 2018-04-17
 */
@Mapper
@Component(value = "roleMapper")
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> getByOrgId(@Param("orgId") Long orgId);

    List<Role> getCommonRoles();

}
